package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc DataSetDuplicateRemovalDto
 * @使用场景
 */
@Data
public class DataSetDuplicateRemovalDto
  extends BaseDto
  implements Serializable {

  /**
   * 通用主键ID
   */
  @NotNull(message = "通用主键ID不能为空")
  @ApiModelProperty("通用主键ID")
  private String commPrimaryKey;

  /**
   * 自定义字段1
   */
  @NotNull(message = "自定义字段1不能为空")
  @ApiModelProperty("自定义字段1")
  private String customField1;

  /**
   * 自定义字段2
   */
  @ApiModelProperty("自定义字段2")
  private String customField2;

  /**
   * 就职记录ID
   */
  @ApiModelProperty("就职记录ID")
  private String inductionRecordId;

  /**
   * 部门ID
   */
  @ApiModelProperty("部门ID")
  private String deptId;

  /**
   * 身份人员ID
   */
  @ApiModelProperty("身份人员ID")
  private String originalRoleMemberId;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DataSetDuplicateRemovalDto that = (DataSetDuplicateRemovalDto) o;
    return (
      commPrimaryKey == that.commPrimaryKey &&
      customField1 == that.customField1 &&
      customField2 == that.customField2 &&
      inductionRecordId == that.inductionRecordId &&
      deptId == that.deptId &&
      originalRoleMemberId == that.originalRoleMemberId
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      commPrimaryKey,
      customField1,
      customField2,
      inductionRecordId,
      deptId,
      originalRoleMemberId
    );
  }

}
